package net.lab1024.sa.admin.module.app.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import net.lab1024.sa.admin.module.app.req.AppOrderDetailReq;
import net.lab1024.sa.admin.module.app.req.AppOrderListReq;
import net.lab1024.sa.admin.module.app.req.MiniBindUserReq;
import net.lab1024.sa.admin.module.app.rsp.AppOrderDetailRsp;
import net.lab1024.sa.admin.module.app.rsp.AppOrderListRsp;
import net.lab1024.sa.admin.module.app.rsp.LoginByPasswordRsp;
import net.lab1024.sa.admin.module.app.service.AppOrderService;
import net.lab1024.sa.admin.module.business.bjd.domain.vo.OrderVo;
import net.lab1024.sa.base.common.domain.ResponseDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

/**
 *
 * @author guolong.zhang
 * @date 2025/02/10 09:05
 **/
@RestController
@Tag(name = "app-订单")
@RequestMapping("app")
public class AppOrderController {

    @Autowired
    private AppOrderService appOrderService;
    @Operation(summary = "订单列表查询")
    @PostMapping("/order/list")
    public ResponseDTO<List<AppOrderListRsp>> orderList(@RequestBody @Valid AppOrderListReq req) {
        return ResponseDTO.ok(appOrderService.orderList(req));
    }

}
